package com.allen.imsystem.friend.model.pojo;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;


@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="FriendGroup对象", description="")
public class FriendGroup implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "自增id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "好友分组创建者，'0'为系统默认创建")
    private String uid;

    @ApiModelProperty(value = "分组名")
    private String friGroupName;

    @ApiModelProperty(value = "好友分组的人数")
    private Integer size;

    @ApiModelProperty(value = "是否是默认组")
    private Boolean isDefault;

    @ApiModelProperty(value = "0->已被删除 ， 1->有效")
    private Boolean status;


    public FriendGroup() {
    }

    public FriendGroup(String friGroupName, String uid, Integer size, Boolean status, Boolean isDefault) {
        this.friGroupName = friGroupName;
        this.uid = uid;
        this.size = size;
        this.status = status;
        this.isDefault = isDefault;
    }
}
